# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 存放api接口信息。以dict形式存放，这样就可以API_ALL[''][url]这种方式去取，看起来较直观，知道取得是哪个接口的那部分信息
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

from datetime import datetime

enterpriseName = '供应链企业'

API_SAAS={
    "register":{
	    "username":"13012341234",
	    "password":"12345678",
	    "agreementStatus":True
    },

    "openAccount":{
        "username": "13011223344",
        "enterpriseName": enterpriseName,
        "socialCode": "1234",
        "registeredAddress": "1122",
        "businessAddress": "3344",
        "registeredCapital": "2000",
        "paidCapital": "1000",
        "startingDate": "2019-05-28",
        "endingDate": "9999-12-30",
        "generalTaxpayers": "1",
        "legalName": "5566",
        "legalPhone": "13012345678",
        "legalIdCard": "330121199012234578",
        "controlList": [
            {
            "controlName": "7878",
            "controlPhone": "13012345687",
            "controlIdCard": "330121199012234587"
            }
        ],
        "businessList": [
            {
            "businessName": "4455",
            "businessPhone": "13012345645",
            "businessMail": "130@163.com"
            }
        ],
        "financeList": [
            {
            "financeName": "7272",
            "financePhone": "13012345672",
            "financeMail": "100@qq.com"
            },
            {
            "financeName": "6464",
            "financePhone": "13012345664",
            "financeMail": "200@qq.com"
            }
        ]
    },

    "approveEnterprise":{
        "enterpriseNo": "BO201905280003",
        "approvalRemark": "1234",
        "approvalResult": "1",      # 0-拒绝，1-通过
        "createUser": "1",
        "lstUpdUser": "1"
    },

    "apply": {
	        "enterpriseNo": "BO201906030001",
            "enterpriseName": enterpriseName,
            "socialCode": "abcdefg",
            "productCd":"10001",
            "registeredAddress": "广州",
            "businessAddress": "越秀",
            "registeredCapital": "1000000",
            "paidCapital": "10000",
            "generalTaxpayers": "0",
		    "legalName":"小龙",
			"legalPhone":"13535575434",
			"legalIdCard":"42124565646464",
            "controlList": {
			    "controlName":"小昌",
				"controlPhone":"156786546464",
				"controlIdCard":"123435645654"
			},
            "businessList": {
			    "businessName":"小卓",
				"businessPhone":"13646786544",
				"businessMail":"5435435464654315"
			},
            "financeList": {
			    "financeName":"小鹏",
				"financePhone":"13778354345",
				"financeMail":"543546879774645"
			},
            "cardNo": "20190306100000",
            "bankName": "民盛",
            "accountName": "哈哈",
            "bankBranchName": "小行",
            "startingDate":"2013-06-06",
            "endingDate":"2016-06-06",
            "threeYearIncome":"30000",
            "threeYearProfit":"322554",
            "threeYearInvoice":"1321321",
            "threeYearTaxes":"123123",
            "financialLendingBalance":"12345354",
            "unfinancialLendingBalance":"54213213",
            "externalGuarantees":"没问题",
            "warrantorName":"小刘",
            "amountGuaranteed":"50000",
            "warrantyPeriod":"360",
            "paymentSubject":"哈哈哈",
            "periodCooperation":"360",
            "turnover":"2135615",
            "paymentPeriod":"7",
            "totalReceivables":"134654516",
            "projectEmployees":"66",
            "averageEmployeeSalary":"6000",
            "capEmployeeSalary":"8000",
            "totalApplication":"10000",
            "applicationDeadline":"10",
            "repaymentAccount":"小龙",
            "pledgedReceivables":"5431",
            "borrowingGuarantee":"财产抵押",
            "cooperativeClients":"啊啊啊",
            "manpowerServiceContract":"啦啦啦",
            "laborContract":"噢噢噢噢",
            "returnRecords":"呜呜呜",
            "paymentList":"哈哈哈",
            "receivables":"呃呃呃",
            "userName":"15646515616"
    },

    "task_fetch": {
        "userId": "2",
        "beginDate": None,
        "endDate": datetime.now().strftime('%Y-%m-%d')
    },

    "task_complete":{
        "userId": "2",
        "processNo": "SCD201905270008",
        "processNum": "142505",
        "taskId": "145007",
        "rtfState": "Pass",         # Pass-通过  Reject-拒绝  BackToFirst-退回初审 出纳时候直接写死pass
        "remark": "",
        "creditLimit": 400000,
        "creditTerm": 30,
        "creditRate": 0.01,
        "consultationFeeRate": 30,
        "consultationFee": 1300,
        "loanTime":""
    },

    "saveVoucher":{
	    "processNo":"SCD201905248888",
	    "imagesUrl":"https://mssaas.oss-cn-shenzhen.aliyuncs.com/prod/meson/msscloan/file/enterprise/2019-06-11/BO201906050068/repaymentvoucher/2019-06-11_141821-1.%E6%8C%87%E6%95%B0-20190610.png"
    },

    "particulars":{
	    "processNo":"SCD201906170002"
    }
}